import request from '@/utils/request'

export const memberAddress = data => {
  return request({
    url: '/member/address',
    method: 'post',
    data
  })
}

export const memberAddressGet = () => {
  return request({
    url: '/member/address',
    method: 'get'
  })
}
export const memberAddressId = (id, data) => {
  return request({
    url: `/member/address/${id}`,
    method: 'put',
    data
  })
}

export const memberAddressIdDelete = (id) => {
  return request({
    url: `/member/address/${id}`,
    method: 'delete',
    
  })
}